
#include "LoginConnection.h"

#include <Poco/Util/Application.h>
#include <Poco/Exception.h>
#include <Poco/UUID.h>

using Poco::Util::Application;
using Poco::Exception;
using Poco::UUID;

#include <string>
#include <iostream>

LoginConnection::LoginConnection(const StreamSocket& s) : TCPServerConnection(s)
{
}
LoginConnection::~LoginConnection()
{
}

void LoginConnection::run()
{
	char buf[512] = {0};
	Application& app = Application::instance();
	app.logger().information("Request from " + this->socket().peerAddress().toString());
	try {

		socket().receiveBytes(buf, 512);

//		socket().sendBytes(g_buf, 1024);

	} catch (Poco::Exception& e) {
		app.logger().log(e);
		return;
	}
}
